<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean class="java.util.ArrayList" id="shoppingcar" scope="session" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSTL4</title>
    </head>
    <body>
        <h1>-----JSTL4-----</h1>
        <hr>
        <c:forEach var="x" begin="1" end="10">
            <c:out value="${x}" /> <br>
        </c:forEach>
        <br>
        <c:forEach var="x" begin="11" end="20" step="2">
            <c:out value="${x}" /> <br>
        </c:forEach>
        <br>
        <c:forEach var="x" items="${shoppingcar}">
            <c:out value="${x.username}"/>,<c:out value="${x.tel}"/>,<c:out value="${x.birthday}"/> <br>
        </c:forEach>
    </body>
</html>